package org.classg.edu.service;

import org.classg.edu.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;
import org.classg.edu.vo.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-05-18
 */
public interface ChapterService extends IService<Chapter> {

    // 根据课程id查询章节和小节信息
    List<ChapterVo> queryChapterAndVideoByCourseId(String courseId);

    // 根据id删除章节
    Boolean deleteChapterById(String id);

    // 根据课程id删除章节
    void deleteChapterByCourseId(String id);
}
